* {
  margin: 0;
  padding: 0;
  list-style: none;
}

//>flex函数
.fc() {
  display: flex;
  justify-content: center;
  align-items: center;
}
.fb() {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fa() {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

body {
  overflow-x: hidden;
}

// ?轮播和导航
.swiper-box {
  height: 4.309rem;
  min-height: 270px; /* 820px -> 4.309rem */
  width: 100vw;
  // background-color: aqua;
  position: relative;
  nav {
    width: 1200px;
    height: 60px;
    // background-color: #999;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    .fb();
    i {
      display: none;
    }

    img {
      width: 200px;
      height: 100%;
      margin-right: 30px;
    }
    ul {
      position: relative;
      flex: auto;
      height: 100%;
      .fb();
      li {
        cursor: pointer;
        flex: 1;
        .fc();
        font-size: 18px;
        font-weight: 900;
        color: aliceblue;
      }
      .hoverDiv {
        opacity: 0;
        position: absolute;
        left: 0;
        top: 60px;
        width: 121.25px;
        height: 5px;
        background-color: rgb(68, 123, 232);
        z-index: -1;
        transition: 0.3s;
      }
      //   @num: 121.25px;
      //   li:nth-child(2):hover ~ .hoverDiv {
      //     left: @num * 1;
      //   }
      //   li:nth-child(3):hover ~ .hoverDiv {
      //     left: @num * 2;
      //   }
      //   li:nth-child(4):hover ~ .hoverDiv {
      //     left: @num * 3;
      //   }
      //   li:nth-child(5):hover ~ .hoverDiv {
      //     left: @num * 4;
      //   }
      //   li:nth-child(6):hover ~ .hoverDiv {
      //     left: @num * 5;
      //   }
      //   li:nth-child(7):hover ~ .hoverDiv {
      //     left: @num * 6;
      //   }
      //   li:nth-child(8):hover ~ .hoverDiv {
      //     left: @num * 7;
      //   }

      // >鼠标跟随导航封装
      @num: 121.25px;
      .hoverDiv(@DivNum) {
        //>要加花括号
        li:nth-child(@{DivNum}):hover ~ .hoverDiv {
          opacity: 1;
          left: @num * (@DivNum - 1);
        }
      }
      .hoverDiv(1);
      .hoverDiv(2);
      .hoverDiv(3);
      .hoverDiv(4);
      .hoverDiv(5);
      .hoverDiv(6);
      .hoverDiv(7);
      .hoverDiv(8);
    }
  }

  .black {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    width: 100vw;
    padding: 0 100px;
  }
}

// ?内容主体图片
.containerBox1-bg {
  width: 100vw;
  background: #ffffff;
  .containerBox1 {
    // margin-top: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
    width: 96%;
    background-color: rgb(255, 255, 255);
    .row {
      div {
        text-align: center;
        height: 750px;
        // background-color: aqua;
        // border: 1px solid red;
      }

      .box1 {
        h1 {
          margin-top: 30px;
          font-weight: 900;
        }
        p {
          font-size: 18px;
          margin-bottom: 40px;
        }

        .containerBox1-swiper-box {
          height: 75%;
          width: 100%;
          // background-color: aquamarine;
          #carousel-example-generic {
            height: 100% !important;
            .carousel-inner {
              height: 100% !important;
            }
          }
        }
      }

      .box2 {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        div {
          height: 47%;
          width: 100%;
          background-color: rgb(73, 99, 203);
        }

        .box2-1 {
          background-color: rgb(204, 143, 63);
          background-image: url(../images/b1.jpg);
          background-repeat: no-repeat;
          background-size: cover;
          color: rgb(255, 255, 255);
          .fc();
          flex-direction: column;
          h2 {
            font-weight: bolder;
          }
        }

        .box2-2 {
          background-image: url(../images/b2.png);
          background-repeat: no-repeat;
          background-position: top right;

          padding: 20px 40px;
          text-align: left !important;
          color: aliceblue;
          .btns {
            background-color: transparent;
            margin-top: 20px;
            width: 80%;
            display: flex;
            flex-wrap: wrap;
            .btn-primary {
              text-align: left;
              margin: 5px 5px;
              padding: 5px 30px;
              height: 40px;
              // width: 110px;
              border: 0.5px solid rgb(115, 135, 191);
              background-color: rgb(71, 97, 201) !important;
            }
          }

          h1 {
            font-weight: bolder;
          }
        }
      }
    }
  }
}

// ?透明盒子
.opacityBox {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100vw;
  height: 100vh;
  background-image: url(../images/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  background-position: 50% 100%;
  z-index: -999;
}

// ?透明盒子内容
section {
  width: 100vw;
  height: 1000px;
  // background-color: rgba(79, 97, 146, 0.2);
  color: #ffffff;
  .topBox {
    height: 70%;
    width: 1400px;
    // background-color: #3b3434;
    margin: auto;
    display: flex;
    .left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: 65%;
      height: 100%;
      // background-color: rgb(83, 104, 104);
      h5 {
        margin-bottom: 60px;
      }

      p {
        text-indent: 2em;
      }

      .last {
        margin-bottom: 60px;
      }

      .btn {
        width: 180px;
        height: 50px;
        background-color: transparent;
        border: 1px#ffffff solid;
      }
    }

    .right {
      width: 35%;
      height: 100%;
      // background-color: rgb(52, 95, 95);
      display: flex;
      flex-direction: column;
      justify-content: center;
      .gridBox {
        margin: auto;
        width: 90%;
        height: 400px; /* 高度保持为 400px */
        // background-color: aqua;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-gap: 50px;

        .item {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          img {
            width: 40%;
            height: 50%;
          }
        }
      }
    }
  }
  .bottomBox {
    height: 30%;
    width: 100%;
    background-color: rgba(33, 74, 187, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    p {
      font-size: 22px;
    }

    .btn {
      width: 280px;
      height: 50px;
      background-color: transparent;
      border: 1px#ffffff solid;
    }
  }
}

// ?新闻中心
.containerBox2 {
  width: 100vw;
  padding-bottom: 40px;
  padding-top: 40px;
  background-color: rgb(255, 255, 255);
  .row {
    .fc();
    .item {
      height: 285px;
      width: 700px;
      // background-color: aqua;
      // border: 1px solid red;
      .title {
        height: 30%;
        font-size: 30px;
        color: rgb(54, 93, 168);
      }

      .mediabox {
        height: 70%;
        // background-color: antiquewhite;
        display: flex;

        .imgbox {
          width: 45%;
          height: 100%;
          overflow: hidden;
          img {
            width: 100%;
            height: 100%;
            transition: 1s;
          }

          &:hover img {
            transform: scale(1.1);
          }
        }
        .textbox {
          padding: 10px 10px;
          height: 100%;
          flex: 1;
          h4 {
            width: 90%;
            text-wrap: nowrap;
            overflow: hidden; /* 隐藏溢出的内容 */
            text-overflow: ellipsis;
          }
          p {
            font-size: 16px;
          }
        }
      }
    }
  }
}

// ?页脚
footer {
  height: 475px;
  width: 100vw;
  background-color: rgb(45, 45, 45);
  color: #ffffff;
  .nav {
    width: 1300px;
    height: 20%;
    // background-color: #999;
    margin: auto;
    border-bottom: 1px solid #626060;
    .fb();
    img {
      width: 210px;
      height: 60%;
      margin-right: 30px;
    }

    ul {
      position: relative;
      flex: auto;
      height: 100%;
      //   background-color: antiquewhite;
      .fb();
      li {
        cursor: pointer;
        flex: 1;
        .fc();
        font-size: 16px;
        // font-weight: 900;
        color: aliceblue;
      }
    }
  }

  .top {
    margin: auto;
    height: 55%;
    width: 1300px;
    // background-color: antiquewhite;
    display: flex;
    .left {
      width: 70%;
      height: 100%;
      // background-color: beige;
      display: flex;

      .item {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-indent: 5px;
        img {
          width: 70px;
          height: 70px;
        }
        p {
          margin-top: 10px;
          font-size: 18px;
        }
      }
    }
    .right {
      width: 30%;
      height: 100%;
      text-align: center;
      .fc();
      flex-direction: column;
      img {
        height: 60%;
      }
    }
  }
  .bottom {
    margin: auto;
    // border-top: 1px solid #626060;

    height: 20%;
    width: 1300px;
    // background-color: aqua;
    .fb();
    font-size: 15px;
  }
}

// ?侧边栏
aside {
  height: 100vh;
  width: 200px;
  background-color: rgb(45, 45, 45);
  color: #878787;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none;

  li {
    width: 100%;
    padding: 10px 20px;
    cursor: pointer;
    // background-color: #626060;
    &:hover {
      background-color: #4e4e4e;
      color: #ffffff;
    }
  }
}
